package com.fjut.kms.service;

import com.fjut.kms.dao.SoftWaresDao;
import com.fjut.kms.dao.SoftWaresJDBCImpl;
import com.fjut.kms.domain.SoftWares;

/**
 * Created by Empathy on 2017/8/20.
 */
public class SoftWaresServiceImpl implements SoftWaresService {
    public String getKmsServerByCategory(String category){
        SoftWaresDao swDao=new SoftWaresJDBCImpl();
        SoftWares sw=null;
        sw = swDao.getKmsServerByCategory(category);
        return sw.getKmsServer()!=null&&!"".equals(sw.getKmsServer())?sw.getKmsServer():null;
    }
}
